home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hilti Interactive
/
Hilti Interactive.iso
/
Netscape
/
Communicator
/
Program
/
resdll.dll
/
RCDATA
/
INIT_PREFS
< prev
next >
Wrap
Text File
|
1997-11-21
|
2KB
|
69 lines
// Style note 3/3:
// internal objects & functions are in under_score form.
// public functions are in interCaps.
// Remove this -- but called in winpref.js :
// platform.windows = true;
function plat() {
this.windows=false;
this.mac=false;
this.unix=false;
};
platform = new plat();
/* --- Preference initialization functions ---
Moved to native functions:
pref -> pref_NativeDefaultPref
defaultPref -> "
userPref -> pref_NativeUserPref
lockPref -> pref_NativeLockPref
unlockPref -> pref_NativeUnlockPref
getPref -> pref_NativeGetPref
config -> pref_NativeDefaultPref (?)
*/
// stubs for compatability
var default_pref = defaultPref;
var lock_pref = lockPref;
var unlock_pref = unlockPref;
var userPref = user_pref;
// -------------------------
function mime_type(root, mimetype, extension, load_action, appname, appsig, filetype)
{
// changed for prefbert
pref(root + ".mimetype", mimetype);
pref(root + ".extension", extension);
pref(root + ".load_action", load_action);
pref(root + ".mac_appname", appname);
pref(root + ".mac_appsig", appsig);
pref(root + ".mac_filetype", filetype);
pref(root + ".description", "");
pref(root + ".latent_plug_in", false);
}
// LDAP
// Searches for "key=value" in the given string and returns value.
function getLDAPValue(str, key)
{
if (str == null || key == null)
return null;
var search_key = "\n" + key + "=";
var start_pos = str.indexOf(search_key);
if (start_pos == -1)
return null;
start_pos += search_key.length;
var end_pos = str.indexOf("\n", start_pos);
if (end_pos == -1)
end_pos = str.length;
return str.substring(start_pos, end_pos);
}